package main

import "log"

type User struct {
	Name string
	Age  int32
}

func main() {

	user := User{Name: "fhz", Age: 38}

	// 增加日志前缀
	log.SetFlags(log.Lshortfile | log.Ldate | log.Lmicroseconds)
	log.Printf("%s login ,age: %d", user.Name, user.Age)

}
